package cn.vconinfo.lims.delivery.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class WLisRequestInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WLisRequestInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andHospitalIdIsNull() {
            addCriterion("hospital_id is null");
            return (Criteria) this;
        }

        public Criteria andHospitalIdIsNotNull() {
            addCriterion("hospital_id is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalIdEqualTo(Long value) {
            addCriterion("hospital_id =", value, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdNotEqualTo(Long value) {
            addCriterion("hospital_id <>", value, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdGreaterThan(Long value) {
            addCriterion("hospital_id >", value, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdGreaterThanOrEqualTo(Long value) {
            addCriterion("hospital_id >=", value, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdLessThan(Long value) {
            addCriterion("hospital_id <", value, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdLessThanOrEqualTo(Long value) {
            addCriterion("hospital_id <=", value, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdIn(List<Long> values) {
            addCriterion("hospital_id in", values, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdNotIn(List<Long> values) {
            addCriterion("hospital_id not in", values, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdBetween(Long value1, Long value2) {
            addCriterion("hospital_id between", value1, value2, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdNotBetween(Long value1, Long value2) {
            addCriterion("hospital_id not between", value1, value2, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andBarCodeIsNull() {
            addCriterion("bar_code is null");
            return (Criteria) this;
        }

        public Criteria andBarCodeIsNotNull() {
            addCriterion("bar_code is not null");
            return (Criteria) this;
        }

        public Criteria andBarCodeEqualTo(String value) {
            addCriterion("bar_code =", value, "barCode");
            return (Criteria) this;
        }

        public Criteria andBarCodeNotEqualTo(String value) {
            addCriterion("bar_code <>", value, "barCode");
            return (Criteria) this;
        }

        public Criteria andBarCodeGreaterThan(String value) {
            addCriterion("bar_code >", value, "barCode");
            return (Criteria) this;
        }

        public Criteria andBarCodeGreaterThanOrEqualTo(String value) {
            addCriterion("bar_code >=", value, "barCode");
            return (Criteria) this;
        }

        public Criteria andBarCodeLessThan(String value) {
            addCriterion("bar_code <", value, "barCode");
            return (Criteria) this;
        }

        public Criteria andBarCodeLessThanOrEqualTo(String value) {
            addCriterion("bar_code <=", value, "barCode");
            return (Criteria) this;
        }

        public Criteria andBarCodeLike(String value) {
            addCriterion("bar_code like", value, "barCode");
            return (Criteria) this;
        }

        public Criteria andBarCodeNotLike(String value) {
            addCriterion("bar_code not like", value, "barCode");
            return (Criteria) this;
        }

        public Criteria andBarCodeIn(List<String> values) {
            addCriterion("bar_code in", values, "barCode");
            return (Criteria) this;
        }

        public Criteria andBarCodeNotIn(List<String> values) {
            addCriterion("bar_code not in", values, "barCode");
            return (Criteria) this;
        }

        public Criteria andBarCodeBetween(String value1, String value2) {
            addCriterion("bar_code between", value1, value2, "barCode");
            return (Criteria) this;
        }

        public Criteria andBarCodeNotBetween(String value1, String value2) {
            addCriterion("bar_code not between", value1, value2, "barCode");
            return (Criteria) this;
        }

        public Criteria andSampleNoIsNull() {
            addCriterion("sample_no is null");
            return (Criteria) this;
        }

        public Criteria andSampleNoIsNotNull() {
            addCriterion("sample_no is not null");
            return (Criteria) this;
        }

        public Criteria andSampleNoEqualTo(String value) {
            addCriterion("sample_no =", value, "sampleNo");
            return (Criteria) this;
        }

        public Criteria andSampleNoNotEqualTo(String value) {
            addCriterion("sample_no <>", value, "sampleNo");
            return (Criteria) this;
        }

        public Criteria andSampleNoGreaterThan(String value) {
            addCriterion("sample_no >", value, "sampleNo");
            return (Criteria) this;
        }

        public Criteria andSampleNoGreaterThanOrEqualTo(String value) {
            addCriterion("sample_no >=", value, "sampleNo");
            return (Criteria) this;
        }

        public Criteria andSampleNoLessThan(String value) {
            addCriterion("sample_no <", value, "sampleNo");
            return (Criteria) this;
        }

        public Criteria andSampleNoLessThanOrEqualTo(String value) {
            addCriterion("sample_no <=", value, "sampleNo");
            return (Criteria) this;
        }

        public Criteria andSampleNoLike(String value) {
            addCriterion("sample_no like", value, "sampleNo");
            return (Criteria) this;
        }

        public Criteria andSampleNoNotLike(String value) {
            addCriterion("sample_no not like", value, "sampleNo");
            return (Criteria) this;
        }

        public Criteria andSampleNoIn(List<String> values) {
            addCriterion("sample_no in", values, "sampleNo");
            return (Criteria) this;
        }

        public Criteria andSampleNoNotIn(List<String> values) {
            addCriterion("sample_no not in", values, "sampleNo");
            return (Criteria) this;
        }

        public Criteria andSampleNoBetween(String value1, String value2) {
            addCriterion("sample_no between", value1, value2, "sampleNo");
            return (Criteria) this;
        }

        public Criteria andSampleNoNotBetween(String value1, String value2) {
            addCriterion("sample_no not between", value1, value2, "sampleNo");
            return (Criteria) this;
        }

        public Criteria andPatientNumberIsNull() {
            addCriterion("patient_number is null");
            return (Criteria) this;
        }

        public Criteria andPatientNumberIsNotNull() {
            addCriterion("patient_number is not null");
            return (Criteria) this;
        }

        public Criteria andPatientNumberEqualTo(String value) {
            addCriterion("patient_number =", value, "patientNumber");
            return (Criteria) this;
        }

        public Criteria andPatientNumberNotEqualTo(String value) {
            addCriterion("patient_number <>", value, "patientNumber");
            return (Criteria) this;
        }

        public Criteria andPatientNumberGreaterThan(String value) {
            addCriterion("patient_number >", value, "patientNumber");
            return (Criteria) this;
        }

        public Criteria andPatientNumberGreaterThanOrEqualTo(String value) {
            addCriterion("patient_number >=", value, "patientNumber");
            return (Criteria) this;
        }

        public Criteria andPatientNumberLessThan(String value) {
            addCriterion("patient_number <", value, "patientNumber");
            return (Criteria) this;
        }

        public Criteria andPatientNumberLessThanOrEqualTo(String value) {
            addCriterion("patient_number <=", value, "patientNumber");
            return (Criteria) this;
        }

        public Criteria andPatientNumberLike(String value) {
            addCriterion("patient_number like", value, "patientNumber");
            return (Criteria) this;
        }

        public Criteria andPatientNumberNotLike(String value) {
            addCriterion("patient_number not like", value, "patientNumber");
            return (Criteria) this;
        }

        public Criteria andPatientNumberIn(List<String> values) {
            addCriterion("patient_number in", values, "patientNumber");
            return (Criteria) this;
        }

        public Criteria andPatientNumberNotIn(List<String> values) {
            addCriterion("patient_number not in", values, "patientNumber");
            return (Criteria) this;
        }

        public Criteria andPatientNumberBetween(String value1, String value2) {
            addCriterion("patient_number between", value1, value2, "patientNumber");
            return (Criteria) this;
        }

        public Criteria andPatientNumberNotBetween(String value1, String value2) {
            addCriterion("patient_number not between", value1, value2, "patientNumber");
            return (Criteria) this;
        }

        public Criteria andPatientIdIsNull() {
            addCriterion("patient_id is null");
            return (Criteria) this;
        }

        public Criteria andPatientIdIsNotNull() {
            addCriterion("patient_id is not null");
            return (Criteria) this;
        }

        public Criteria andPatientIdEqualTo(Long value) {
            addCriterion("patient_id =", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdNotEqualTo(Long value) {
            addCriterion("patient_id <>", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdGreaterThan(Long value) {
            addCriterion("patient_id >", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdGreaterThanOrEqualTo(Long value) {
            addCriterion("patient_id >=", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdLessThan(Long value) {
            addCriterion("patient_id <", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdLessThanOrEqualTo(Long value) {
            addCriterion("patient_id <=", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdIn(List<Long> values) {
            addCriterion("patient_id in", values, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdNotIn(List<Long> values) {
            addCriterion("patient_id not in", values, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdBetween(Long value1, Long value2) {
            addCriterion("patient_id between", value1, value2, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdNotBetween(Long value1, Long value2) {
            addCriterion("patient_id not between", value1, value2, "patientId");
            return (Criteria) this;
        }

        public Criteria andSamplingDateIsNull() {
            addCriterion("sampling_date is null");
            return (Criteria) this;
        }

        public Criteria andSamplingDateIsNotNull() {
            addCriterion("sampling_date is not null");
            return (Criteria) this;
        }

        public Criteria andSamplingDateEqualTo(Date value) {
            addCriterion("sampling_date =", value, "samplingDate");
            return (Criteria) this;
        }

        public Criteria andSamplingDateNotEqualTo(Date value) {
            addCriterion("sampling_date <>", value, "samplingDate");
            return (Criteria) this;
        }

        public Criteria andSamplingDateGreaterThan(Date value) {
            addCriterion("sampling_date >", value, "samplingDate");
            return (Criteria) this;
        }

        public Criteria andSamplingDateGreaterThanOrEqualTo(Date value) {
            addCriterion("sampling_date >=", value, "samplingDate");
            return (Criteria) this;
        }

        public Criteria andSamplingDateLessThan(Date value) {
            addCriterion("sampling_date <", value, "samplingDate");
            return (Criteria) this;
        }

        public Criteria andSamplingDateLessThanOrEqualTo(Date value) {
            addCriterion("sampling_date <=", value, "samplingDate");
            return (Criteria) this;
        }

        public Criteria andSamplingDateIn(List<Date> values) {
            addCriterion("sampling_date in", values, "samplingDate");
            return (Criteria) this;
        }

        public Criteria andSamplingDateNotIn(List<Date> values) {
            addCriterion("sampling_date not in", values, "samplingDate");
            return (Criteria) this;
        }

        public Criteria andSamplingDateBetween(Date value1, Date value2) {
            addCriterion("sampling_date between", value1, value2, "samplingDate");
            return (Criteria) this;
        }

        public Criteria andSamplingDateNotBetween(Date value1, Date value2) {
            addCriterion("sampling_date not between", value1, value2, "samplingDate");
            return (Criteria) this;
        }

        public Criteria andTransFlagIsNull() {
            addCriterion("trans_flag is null");
            return (Criteria) this;
        }

        public Criteria andTransFlagIsNotNull() {
            addCriterion("trans_flag is not null");
            return (Criteria) this;
        }

        public Criteria andTransFlagEqualTo(Integer value) {
            addCriterion("trans_flag =", value, "transFlag");
            return (Criteria) this;
        }

        public Criteria andTransFlagNotEqualTo(Integer value) {
            addCriterion("trans_flag <>", value, "transFlag");
            return (Criteria) this;
        }

        public Criteria andTransFlagGreaterThan(Integer value) {
            addCriterion("trans_flag >", value, "transFlag");
            return (Criteria) this;
        }

        public Criteria andTransFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("trans_flag >=", value, "transFlag");
            return (Criteria) this;
        }

        public Criteria andTransFlagLessThan(Integer value) {
            addCriterion("trans_flag <", value, "transFlag");
            return (Criteria) this;
        }

        public Criteria andTransFlagLessThanOrEqualTo(Integer value) {
            addCriterion("trans_flag <=", value, "transFlag");
            return (Criteria) this;
        }

        public Criteria andTransFlagIn(List<Integer> values) {
            addCriterion("trans_flag in", values, "transFlag");
            return (Criteria) this;
        }

        public Criteria andTransFlagNotIn(List<Integer> values) {
            addCriterion("trans_flag not in", values, "transFlag");
            return (Criteria) this;
        }

        public Criteria andTransFlagBetween(Integer value1, Integer value2) {
            addCriterion("trans_flag between", value1, value2, "transFlag");
            return (Criteria) this;
        }

        public Criteria andTransFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("trans_flag not between", value1, value2, "transFlag");
            return (Criteria) this;
        }

        public Criteria andCommentsIsNull() {
            addCriterion("comments is null");
            return (Criteria) this;
        }

        public Criteria andCommentsIsNotNull() {
            addCriterion("comments is not null");
            return (Criteria) this;
        }

        public Criteria andCommentsEqualTo(String value) {
            addCriterion("comments =", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsNotEqualTo(String value) {
            addCriterion("comments <>", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsGreaterThan(String value) {
            addCriterion("comments >", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsGreaterThanOrEqualTo(String value) {
            addCriterion("comments >=", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsLessThan(String value) {
            addCriterion("comments <", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsLessThanOrEqualTo(String value) {
            addCriterion("comments <=", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsLike(String value) {
            addCriterion("comments like", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsNotLike(String value) {
            addCriterion("comments not like", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsIn(List<String> values) {
            addCriterion("comments in", values, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsNotIn(List<String> values) {
            addCriterion("comments not in", values, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsBetween(String value1, String value2) {
            addCriterion("comments between", value1, value2, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsNotBetween(String value1, String value2) {
            addCriterion("comments not between", value1, value2, "comments");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}